package cc.wfu.type.entity;

import cc.wfu.type.interfaces.JwtUserDetails;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.User;


/**
 * @Author: jia-qiang ljq1024.cc
 * @desc: 提供给外界的User对象
 * @Date: 2024-05-23-16:41
 */
public class JwtUser extends User implements JwtUserDetails {

    public JwtUser(String username, String password, String... authorities) {
        super(username, password, AuthorityUtils.createAuthorityList(authorities));
    }
}
